package com.example.androidmainshixun.view;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import com.example.androidmainshixun.R;

public class SoldGoods extends AppCompatActivity {


    private Fragment mContentFragment;
    private FragmentManager mFragmentManager;
    private SoldGoodsFragment soldGoodsFragment;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sold_goods);

        initFragment();
        mFragmentManager.beginTransaction()
                .add(R.id.fragment_sold, soldGoodsFragment).commitAllowingStateLoss();
        mContentFragment = soldGoodsFragment;

    }
    private void initFragment() {
        mFragmentManager = getSupportFragmentManager();
        soldGoodsFragment = new SoldGoodsFragment();
    }
}
